package com.cos.lession68.dao;

import com.cos.lession68.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: COS
 * @time: 2022/9/22 9:25
 * @description:
 */
public interface EmpMapper {

    List<Emp> getEmpByMap(Map<String,Object> maps);

    int updateEmp(Emp emp);

    int insertEmp(Emp emp);

    int deleteEmps(List<Integer> enos);
    int deleteEmps2(int[] enos);

    int insertEmps(@Param("maps") Map<Integer,String> maps);
    int insertEmps2(List<Emp> emps);

}
